.class public Lcom/example/m6wmr/AppsetActivity;
.super Landroid/app/Activity;
.source "AppsetActivity.java"


# annotations
.annotation build Landroid/annotation/SuppressLint;
    value = {
        "SetJavaScriptEnabled"
    }
.end annotation


# static fields
.field public static address:Lcom/example/m6wmr/AppsetActivity;


# instance fields
.field addresslaout:Landroid/widget/LinearLayout;

.field private addressls:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List",
            "<",
            "Lbean/AddressBean;",
            ">;"
        }
    .end annotation
.end field

.field private areaid:Ljava/lang/String;

.field private cursor:Landroid/database/Cursor;

.field private cv:Landroid/content/ContentValues;

.field private db:Landroid/database/sqlite/SQLiteDatabase;

.field private editid:I

.field private goint:I

.field private goodsstr:Ljava/lang/String;

.field public h:Landroid/os/Handler;

.field private helper:Ldbclass/DBOpenHelper;

.field private loaddata:Z

.field loginview:Landroid/view/View;

.field m:Lmyapp/MyApp;

.field private mHandler:Landroid/os/Handler;

.field private mWebView:Landroid/webkit/WebView;

.field private mcontext:Landroid/content/Context;

.field pd:Landroid/app/ProgressDialog;

.field private pingstr:Ljava/lang/String;

.field registerview:Landroid/view/View;

.field private shopid:Ljava/lang/String;

.field shoplayout:Landroid/widget/LinearLayout;

.field private shopstr:Ljava/lang/String;


# direct methods
.method public constructor <init>()V
    .locals 3

    .prologue
    const/4 v2, 0x0

    const/4 v1, 0x0

    .line 71
    invoke-direct {p0}, Landroid/app/Activity;-><init>()V

    .line 72
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->areaid:Ljava/lang/String;

    .line 73
    iput-object v1, p0, Lcom/example/m6wmr/AppsetActivity;->m:Lmyapp/MyApp;

    .line 76
    iput-object v1, p0, Lcom/example/m6wmr/AppsetActivity;->h:Landroid/os/Handler;

    .line 78
    iput-object v1, p0, Lcom/example/m6wmr/AppsetActivity;->shoplayout:Landroid/widget/LinearLayout;

    .line 79
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->mHandler:Landroid/os/Handler;

    .line 80
    iput-object v1, p0, Lcom/example/m6wmr/AppsetActivity;->pd:Landroid/app/ProgressDialog;

    .line 81
    iput-boolean v2, p0, Lcom/example/m6wmr/AppsetActivity;->loaddata:Z

    .line 82
    const-string v0, "0"

    iput-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->shopid:Ljava/lang/String;

    .line 83
    iput-object v1, p0, Lcom/example/m6wmr/AppsetActivity;->goodsstr:Ljava/lang/String;

    .line 86
    iput-object v1, p0, Lcom/example/m6wmr/AppsetActivity;->cursor:Landroid/database/Cursor;

    .line 89
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->shopstr:Ljava/lang/String;

    .line 90
    const-string v0, ""

    iput-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->pingstr:Ljava/lang/String;

    .line 91
    iput v2, p0, Lcom/example/m6wmr/AppsetActivity;->goint:I

    .line 93
    iput v2, p0, Lcom/example/m6wmr/AppsetActivity;->editid:I

    .line 71
    return-void
.end method

.method static synthetic access$0(Lcom/example/m6wmr/AppsetActivity;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 75
    iget-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->mcontext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$1(Lcom/example/m6wmr/AppsetActivity;)Landroid/database/sqlite/SQLiteDatabase;
    .locals 1

    .prologue
    .line 87
    iget-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    return-object v0
.end method


# virtual methods
.method public bindbtn()V
    .locals 10

    .prologue
    const v9, 0x7f0c0019

    const/4 v8, 0x0

    .line 166
    const v6, 0x7f0c0001

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/LinearLayout;

    .line 167
    .local v2, "closebtn":Landroid/widget/LinearLayout;
    new-instance v6, Lcom/example/m6wmr/AppsetActivity$2;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/AppsetActivity$2;-><init>(Lcom/example/m6wmr/AppsetActivity;)V

    invoke-virtual {v2, v6}, Landroid/widget/LinearLayout;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 174
    const v6, 0x7f0c0018

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    check-cast v1, Landroid/widget/TextView;

    .line 175
    .local v1, "cleardata":Landroid/widget/TextView;
    new-instance v6, Lcom/example/m6wmr/AppsetActivity$3;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/AppsetActivity$3;-><init>(Lcom/example/m6wmr/AppsetActivity;)V

    invoke-virtual {v1, v6}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 218
    const-string v6, "userInfo"

    .line 217
    invoke-virtual {p0, v6, v8}, Lcom/example/m6wmr/AppsetActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 219
    .local v4, "preferences":Landroid/content/SharedPreferences;
    const-string v6, "uid"

    const-string v7, ""

    invoke-interface {v4, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 221
    .local v0, "account":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v6, ""

    invoke-virtual {v0, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 222
    :cond_0
    invoke-virtual {p0, v9}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 223
    .local v5, "userloginlay":Landroid/widget/LinearLayout;
    const/16 v6, 0x8

    invoke-virtual {v5, v6}, Landroid/widget/LinearLayout;->setVisibility(I)V

    .line 232
    :goto_0
    const v6, 0x7f0c001b

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v3

    check-cast v3, Landroid/widget/TextView;

    .line 233
    .local v3, "loginout":Landroid/widget/TextView;
    iget-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 234
    const v6, 0x7f020020

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setBackgroundResource(I)V

    .line 237
    :cond_1
    new-instance v6, Lcom/example/m6wmr/AppsetActivity$4;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/AppsetActivity$4;-><init>(Lcom/example/m6wmr/AppsetActivity;)V

    invoke-virtual {v3, v6}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    .line 276
    return-void

    .line 225
    .end local v3    # "loginout":Landroid/widget/TextView;
    .end local v5    # "userloginlay":Landroid/widget/LinearLayout;
    :cond_2
    invoke-virtual {p0, v9}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v5

    check-cast v5, Landroid/widget/LinearLayout;

    .line 226
    .restart local v5    # "userloginlay":Landroid/widget/LinearLayout;
    invoke-virtual {v5, v8}, Landroid/widget/LinearLayout;->setVisibility(I)V

    goto :goto_0
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 8
    .param p1, "savedInstanceState"    # Landroid/os/Bundle;

    .prologue
    .line 98
    invoke-super {p0, p1}, Landroid/app/Activity;->onCreate(Landroid/os/Bundle;)V

    .line 99
    const v6, 0x7f030006

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/AppsetActivity;->setContentView(I)V

    .line 101
    invoke-virtual {p0}, Lcom/example/m6wmr/AppsetActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v6

    check-cast v6, Lmyapp/MyApp;

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->m:Lmyapp/MyApp;

    .line 102
    iget-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getActivity()Ljava/util/ArrayList;

    move-result-object v0

    .line 103
    .local v0, "activityList":Ljava/util/ArrayList;, "Ljava/util/ArrayList<Landroid/app/Activity;>;"
    invoke-virtual {v0, p0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    .line 104
    iput-object p0, p0, Lcom/example/m6wmr/AppsetActivity;->mcontext:Landroid/content/Context;

    .line 105
    sput-object p0, Lcom/example/m6wmr/AppsetActivity;->address:Lcom/example/m6wmr/AppsetActivity;

    .line 106
    const/high16 v6, 0x7f0c0000

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v4

    check-cast v4, Landroid/widget/LinearLayout;

    .line 107
    .local v4, "top":Landroid/widget/LinearLayout;
    iget-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v6}, Lmyapp/MyApp;->getAppcolor()Ljava/lang/String;

    move-result-object v6

    const-string v7, "1"

    invoke-virtual {v6, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_0

    .line 108
    const v6, 0x7f070026

    invoke-virtual {v4, v6}, Landroid/widget/LinearLayout;->setBackgroundResource(I)V

    .line 112
    :cond_0
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->addressls:Ljava/util/List;

    .line 114
    invoke-virtual {p0}, Lcom/example/m6wmr/AppsetActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 115
    .local v1, "intent":Landroid/content/Intent;
    const-string v6, "shopid"

    invoke-virtual {v1, v6}, Landroid/content/Intent;->getStringExtra(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->shopid:Ljava/lang/String;

    .line 117
    new-instance v6, Ldbclass/DBOpenHelper;

    iget-object v7, p0, Lcom/example/m6wmr/AppsetActivity;->mcontext:Landroid/content/Context;

    invoke-direct {v6, v7}, Ldbclass/DBOpenHelper;-><init>(Landroid/content/Context;)V

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->helper:Ldbclass/DBOpenHelper;

    .line 118
    iget-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->helper:Ldbclass/DBOpenHelper;

    invoke-virtual {v6}, Ldbclass/DBOpenHelper;->getWritableDatabase()Landroid/database/sqlite/SQLiteDatabase;

    move-result-object v6

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    .line 119
    new-instance v6, Landroid/content/ContentValues;

    invoke-direct {v6}, Landroid/content/ContentValues;-><init>()V

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->cv:Landroid/content/ContentValues;

    .line 120
    const v6, 0x7f0c00ca

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v6

    check-cast v6, Landroid/widget/LinearLayout;

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->addresslaout:Landroid/widget/LinearLayout;

    .line 121
    new-instance v6, Lcom/example/m6wmr/AppsetActivity$1;

    invoke-direct {v6, p0}, Lcom/example/m6wmr/AppsetActivity$1;-><init>(Lcom/example/m6wmr/AppsetActivity;)V

    iput-object v6, p0, Lcom/example/m6wmr/AppsetActivity;->h:Landroid/os/Handler;

    .line 159
    const-string v6, "userInfo"

    const/4 v7, 0x0

    .line 158
    invoke-virtual {p0, v6, v7}, Lcom/example/m6wmr/AppsetActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v3

    .line 160
    .local v3, "preferences":Landroid/content/SharedPreferences;
    const-string v6, "username"

    const-string v7, ""

    invoke-interface {v3, v6, v7}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 161
    .local v5, "tuser":Ljava/lang/String;
    const v6, 0x7f0c001a

    invoke-virtual {p0, v6}, Lcom/example/m6wmr/AppsetActivity;->findViewById(I)Landroid/view/View;

    move-result-object v2

    check-cast v2, Landroid/widget/TextView;

    .line 162
    .local v2, "myusername":Landroid/widget/TextView;
    invoke-virtual {v2, v5}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    .line 163
    invoke-virtual {p0}, Lcom/example/m6wmr/AppsetActivity;->bindbtn()V

    .line 164
    return-void
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 301
    invoke-super {p0}, Landroid/app/Activity;->onDestroy()V

    .line 302
    iget-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    if-eqz v0, :cond_0

    .line 303
    iget-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->db:Landroid/database/sqlite/SQLiteDatabase;

    invoke-virtual {v0}, Landroid/database/sqlite/SQLiteDatabase;->close()V

    .line 305
    :cond_0
    iget-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->cursor:Landroid/database/Cursor;

    if-eqz v0, :cond_1

    .line 306
    iget-object v0, p0, Lcom/example/m6wmr/AppsetActivity;->cursor:Landroid/database/Cursor;

    invoke-interface {v0}, Landroid/database/Cursor;->close()V

    .line 308
    :cond_1
    return-void
.end method

.method public onKeyDown(ILandroid/view/KeyEvent;)Z
    .locals 2
    .param p1, "keyCode"    # I
    .param p2, "event"    # Landroid/view/KeyEvent;

    .prologue
    const/4 v1, 0x0

    .line 292
    const/4 v0, 0x4

    if-ne p1, v0, :cond_0

    invoke-virtual {p2}, Landroid/view/KeyEvent;->getRepeatCount()I

    move-result v0

    if-nez v0, :cond_0

    .line 293
    invoke-virtual {p0}, Lcom/example/m6wmr/AppsetActivity;->finish()V

    .line 296
    :cond_0
    return v1
.end method

.method public onStart()V
    .locals 0

    .prologue
    .line 287
    invoke-super {p0}, Landroid/app/Activity;->onStart()V

    .line 288
    return-void
.end method
